<?php
$this->title = "Home";
$this->headTitle($this->title);
?>
<style>
<!--
.prod {
	float: left;
	width: 200px;
	text-align: center;
}
.clear {
	clear: both;
}
-->
</style>
<div class="prod_listing">
<?php
//foreach ($this->prods as $prod) {
for ($i = 0; $i < sizeof($this->prods); $i++) {
	$prod = $this->prods[$i];
	$extra_class = "";
	if (($i % 3) == 0) $extra_class = "clear";
?>
	<div class="prod <?php echo $extra_class?>">
		<div class="prod_img"><img src="public/images/product/thumbs/<?php echo $prod->picture;?>" /></div>
		<div class="prod_title"><?php echo $prod->title;?></div>
	</div>
<?php 
}
?>
</div>